extends Node2D
@export var dead_wait_time: float = 1

func reload_level():
	get_tree().reload_current_scene()


func _on_player_died() -> void:
	var timer = get_tree().create_timer(dead_wait_time)
	await timer.timeout
	reload_level()
	
